Keycloak REST Services 1.5.0-Final

Path: / admin / realms / {realm} / clients / {id} / protocol-mappers / models

creates mapper

Path parameters:
realm - realm name (not id!)
id - id of client (not client-id)

Sub-Resources
Resources
NameDescription
{id}

Resource Methods
Method Summary
NameDescription
POST /admin/realms/{realm}/clients/{id}/protocol-mappers/modelscreates mapper
GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models 

Method Detail

POST /admin/realms/{realm}/clients/{id}/protocol-mappers/models

creates mapper

HTTP Example:
POST /admin/realms/{realm}/clients/{id}/protocol-mappers/models
API Example:

ProtocolMappersResource.createMapper({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */,
  '$entity': /* rep */});

Input:
ProtocolMapperRepresentation
Output:
Response
Consumes:
application/json

GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models

HTTP Example:
GET /admin/realms/{realm}/clients/{id}/protocol-mappers/models
API Example:

ProtocolMappersResource.getMappers({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */});

Output:
List<ProtocolMapperRepresentation>
Produces:
application/json

Keycloak REST Services 1.5.0-Final